import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Home from '@/components/Home'
import productinfo from '@/components/Productinfo'
import SettleAccounts from '@/components/SettleAccounts'
import Car from '@/components/Car'
import Pay from '@/components/Pay'
import Orders from '@/components/Orders'
import AlipaySuccess from '@/components/AlipaySuccess'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/productinfo',
      name: 'productinfo',
      component: productinfo
    },
    {
      path: '/car',
      name: 'Car',
      component: Car
    },

    {
      path: '/settleAccounts',
      name: ' SettleAccounts',
      component:  SettleAccounts
    },
    {
      path: '/pay',
      name: 'Pay',
      component: Pay
    },
    {
      path: '/orders',
      name: 'Orders',
      component: Orders
    },
    {
      path: '/alipaySuccess',
      name: 'AlipaySuccess',
      component: AlipaySuccess
    }

  ]
})
